<?php ob_start(); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta charset="<?php bloginfo( 'charset' ); ?>" content="text/html" />
<title>
<?php
    /*
     * Print the <title> tag based on what is being viewed.
     */
    global $page, $paged;
 
    wp_title( '|', true, 'right' );
 
    // Add the blog name.
    bloginfo( 'name' );
    ?>
</title>
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('stylesheet_url'); ?>" />
<link rel="stylesheet" type="text/css" media="all" href="<?php bloginfo('template_url'); ?>/css/colorbox.css" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/jquery.ui.all.css" />
<link rel="stylesheet" href="<?php bloginfo('template_url'); ?>/css/demos.css" />

<link href='http://fonts.googleapis.com/css?family=Quattrocento' rel='stylesheet' type='text/css' />
<link rel="shortcut icon" type="image/ico" href="<?php bloginfo('template_url'); ?>/favicon.ico" />
<link rel="apple-touch-icon" href="<?php bloginfo('template_url'); ?>/images/favicon.png" />
<meta name="description" content=" Owned by British Gold Asia Ltd, ALGC curates and champions an assortment of independent golf properties, exclusive resort properties, intimate city hideaways, and expansive self-contained resorts. Today, we represent hundreds of international golf resorts and country clubs in 32 countries." />
<meta name="keywords" content=" International Golf Clubs, International Country Clubs, British Golf Asia, Golf Resorts, Golf Hotels, Golf South East Asia, Golf Asia Pacific, Gold Middle East, Golf South Asia, Golf Australasia." />
<meta name="copyright" content="asialeadinggolfclubs.com – by Asia Leading Gold Clubs" />
<link rel="shortcut icon" href="http://www. asialeadinggolfclubs.com/favicon.ico"/>
<link rel="icon" type="image/gif" href="http://www. asialeadinggolfclubs.com/animated_favicon1.gif"/>

<link rel="pingback" href="<?php bloginfo( 'pingback_url' ); ?>" />
<?php wp_head();?>
<!--[if lt IE 9]>
<style type="text/css">
	.fixie { behavior: url(<?php bloginfo('template_url'); ?>/PIE.htc); position: relative; }
</style>
<link rel="stylesheet" type="text/css" href="<?php bloginfo('template_url'); ?>/css/fixie.css" />
<![endif]-->
<?php 
    if(is_page()){ //&& get_query_var('p')) {
        //$postid = get_query_var('p');
        //if($postid == 226){
    
?>
<script type="text/javascript" src="<?php bloginfo('template_url'); ?>/js/jquery.js"></script>
<script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>
<?php } //} ?>
<script type="text/javascript">

  var _gaq = _gaq || [];
  _gaq.push(['_setAccount', 'UA-33308994-1']);
  _gaq.push(['_trackPageview']);

  (function() {
    var ga = document.createElement('script'); ga.type = 'text/javascript'; ga.async = true;
    ga.src = ('https:' == document.location.protocol ? 'https://ssl' : 'http://www') + '.google-analytics.com/ga.js';
    var s = document.getElementsByTagName('script')[0]; s.parentNode.insertBefore(ga, s);
  })();

</script>
</head>
<body <?php echo (is_home()?'class="homepage"':'') ?>>
<div id="container">
    <div id="header">
        <div class="wrapper">
            <div class="head-main">
                <div class="logo"><a href="<?php echo get_home_url(); ?>"><img src="<?php bloginfo('template_url'); ?>/images/algc-logo.png" alt="logo" /></a></div>
                <div class="contact">
                    <ul>
                        <?php if(is_dynamic_sidebar('Top Sidebar')) dynamic_sidebar( 'Top Sidebar' ); ?>
                    </ul>
                </div>
                <!--------------Menu------------------------>
                <?php wp_nav_menu(array('menu'=>'Main menu','container'=>'','menu_id'=>'menu'));?>
                <!--------------End Menu-------------------->
            </div>
            
            <?php if(is_home()): ?>
            <div class="group">
                <!--------------Home banner----------------->
                <div id="banner">
                    <?php 
                        $query = new WP_Query(array('cat'=>1, 'orderby' => 'ID', 'order' => 'ASC'));
                        while($query->have_posts()):$query->the_post();
                    ?>
                        <div>
                            <?php if(has_post_thumbnail()){ the_post_thumbnail('banner',array('class'=> "eddie")); } ?>
                            <div class="content">
                                <h2><?php the_title(); ?></h2>
                                <?php the_content(); ?>
                            </div>
                        </div>
                    <?php endwhile;wp_reset_query(); ?>
                </div>
                <!--------------End home banner----------------->
                <div class="map">
                    <p class="title">ALGC<sup>TM</sup> Golf Course World Map</p>
                    <div class="map-wrapper">
                        <?php if(is_dynamic_sidebar('Google Map Sidebar')): ?>
                        <div id="map"></div>
                        <?php endif; ?>
                    </div>
                </div>
            </div>
            <?php endif; ?>
        </div>
    </div><!-- //header -->